#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time    : 2025/10/24 22:18
# @Author  : summer
# @Email   : 610658552@qq.com
# @File    : checkhealth.py
# @Software: PyCharm
# @Desc    :
from rest_framework.views import APIView
from rest_framework.response import Response
from rest_framework import status

class HealthCheckView(APIView):
    """服务存活检查接口"""
    authentication_classes = []  # 无需认证
    permission_classes = []      # 无需权限

    def get(self, request):
        return Response(
            {"code": 200, "message": "Service is healthy"},
            status=status.HTTP_200_OK
        )